home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / lib / xlib / build next >
Encoding:
Text File  |  1992-11-02  |  2.1 KB  |  135 lines

  1. . ../../config/system
  2. . ../../config/site
  3.  
  4. if [ _$load_obj != _ ]; then more_targets=xlib.pre; fi
  5.  
  6. echo Building Makefile.local...
  7. cat <<EOT >Makefile.local
  8. # This Makefile was produced by running ./build in this directory.
  9.  
  10. SHELL=/bin/sh
  11.  
  12. CC= ${cc-cc}
  13. CFLAGS= $cflags $obj_cflags
  14. LINTFLAGS= $lintflags
  15.  
  16. INC=    ../../include
  17.  
  18. H=    \$(INC)/config.h\\
  19.     \$(INC)/param.h\\
  20.     \$(INC)/object.h\\
  21.     \$(INC)/extern.h\\
  22.     \$(INC)/misc.h\\
  23.     \$(INC)/stkmem.h\\
  24.     \$(INC)/cstring.h\\
  25.     ../util/objects.h\\
  26.     ../util/symbol.h\\
  27.     xlib.h
  28.  
  29. C=    client.c\\
  30.     color.c\\
  31.     colormap.c\\
  32.     cursor.c\\
  33.     display.c\\
  34.     error.c\\
  35.     event.c\\
  36.     extension.c\\
  37.     font.c\\
  38.     gcontext.c\\
  39.     grab.c\\
  40.     graphics.c\\
  41.     init.c\\
  42.     key.c\\
  43.     objects.c\\
  44.     pixel.c\\
  45.     pixmap.c\\
  46.     property.c\\
  47.     text.c\\
  48.     type.c\\
  49.     util.c\\
  50.     window.c\\
  51.     wm.c
  52.  
  53. O=    client.o\\
  54.     color.o\\
  55.     colormap.o\\
  56.     cursor.o\\
  57.     display.o\\
  58.     error.o\\
  59.     event.o\\
  60.     extension.o\\
  61.     font.o\\
  62.     gcontext.o\\
  63.     grab.o\\
  64.     graphics.o\\
  65.     init.o\\
  66.     key.o\\
  67.     objects.o\\
  68.     pixel.o\\
  69.     pixmap.o\\
  70.     property.o\\
  71.     text.o\\
  72.     type.o\\
  73.     util.o\\
  74.     window.o\\
  75.     wm.o
  76.  
  77. all: \$(O) $more_targets
  78.  
  79. .c.o:
  80.     \$(CC) \$(CFLAGS) -I\$(INC) $x11_incl -c \$<
  81.  
  82. client.o:    \$(H) client.c
  83. color.o:    \$(H) color.c
  84. colormap.o:    \$(H) colormap.c
  85. cursor.o:    \$(H) cursor.c
  86. display.o:    \$(H) display.c
  87. error.o:    \$(H) error.c
  88. event.o:    \$(H) event.c
  89. extension.o:    \$(H) extension.c
  90. font.o:        \$(H) font.c
  91. gcontext.o:    \$(H) gcontext.c
  92. grab.o:        \$(H) grab.c
  93. graphics.o:    \$(H) graphics.c
  94. init.o:        \$(H) init.c
  95. key.o:        \$(H) key.c
  96. objects.o:    \$(H) objects.c
  97. pixel.o:    \$(H) pixel.c
  98. pixmap.o:    \$(H) pixmap.c
  99. property.o:    \$(H) property.c
  100. text.o:        \$(H) text.c
  101. type.o:        \$(H) type.c
  102. util.o:        \$(H) util.c
  103. window.o:    \$(H) window.c
  104. wm.o:        \$(H) wm.c
  105.  
  106. EOT
  107. if [ _$load_obj != _ ]; then
  108. cat <<EOT >>Makefile.local
  109. xlib.pre: \$(O)
  110.     ../../scripts/linkext.$load_obj \$@ \$(O) $libxlib
  111.  
  112. install: xlib.pre
  113.     -@if [ ! -d $lib_dir ]; then \\
  114.         echo mkdir $lib_dir; \\
  115.         mkdir $lib_dir; \\
  116.     fi
  117.     cp xlib.pre $lib_dir/xlib.o
  118. EOT
  119. else
  120. cat <<EOT >>Makefile.local
  121. install:
  122. EOT
  123. fi
  124. cat <<EOT >>Makefile.local
  125.  
  126. lint:
  127.     lint \$(LINTFLAGS) -I\$(INC) $x11_incl \$(C)
  128.  
  129. clean:
  130.     rm -f *.o xlib.pre core
  131.  
  132. distclean:
  133.     rm -f *.o xlib.pre core lint.out Makefile.local
  134. EOT
  135.